package com.maple.soa.mapper;

import com.maple.soa.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lijian
 * @date 2020/6/27
 */
public interface SysRoleMapper {

    public List<SysRole> listAll();

    public SysRole getById(@Param("id") Long id);

    public int saveRole(SysRole sysRole);

    public int updateRole(SysRole sysRole);

    public int removeRole(Long id);

    public List<SysRole> listByName(@Param("name") String name);

}
